home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_qt3.idb / usr / freeware / Qt / examples / tetrix / tetrix.cpp.z / tetrix.cpp
C/C++ Source or Header  |  2002-04-08  |  802b  |  26 lines

  1. /****************************************************************************
  2. ** $Id:  qt/tetrix.cpp   3.0.3   edited Oct 12 12:18 $
  3. **
  4. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. #include "qtetrix.h"
  12. #include "qdragapp.h"
  13. #include "qfont.h"
  14.  
  15. int main( int argc, char **argv )
  16. {
  17.     QApplication::setColorSpec( QApplication::CustomColor );
  18.     QDragApplication a(argc,argv);
  19.     QTetrix *tetrix = new QTetrix;
  20.     tetrix->setCaption("Tetrix");
  21.     a.setMainWidget(tetrix);
  22.     tetrix->setCaption("Qt Example - Tetrix");
  23.     tetrix->show();
  24.     return a.exec();
  25. }
  26.